Skip to content

Conversation

@zahidalidev
Copy link
Contributor

Pull Request approval

Although pull request approval is not enforced for this repository in order to reduce friction, merging without a review will generate a ticket for the docs team to review your changes. So if possible, have your pull request approved before merging.

@vercel
Copy link

vercel bot commented Oct 2, 2024

@zahidalidev is attempting to deploy a commit to the Sourcegraph Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Oct 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sourcegraph-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 9, 2024 4:27pm

export function Layout({ children }: { children: React.ReactNode }) {
let pathname = usePathname();
let isHomePage = pathname === '/';
let isCodyApiPage = pathname === '/cody-api';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The OpenAPI spec is for "Sourcegraph API" and I think it's best that we update the page https://sourcegraph.com/docs/api to be the home for these docs. I will update the OpenAPI spec to include the contents from the current https://sourcegraph.com/docs/api/stream_api https://sourcegraph.com/docs/api/graphql pages

The end goal is that these API docs will cover all of our APIs, not just Cody.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After more thinking, it's probably best to call this the "OpenAPI explorer" for "Sourcegraph APIs". We can treat this as a sibling page to the graphql and streaming search. The OpenAPI explorer will also document streaming search + graphql, but it's OK if there's some duplicate information. We can't remove the custom streaming search page or graphql page

Copy link
Contributor

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exciting! I'm very much looking forward to seeing these docs go live :D

The select menu needs customization for dark theme

CleanShot.2024-10-09.at.15.45.30.mp4

We should enable text wrapping for the authorization component

CleanShot 2024-10-09 at 15 46 31@2x

CleanShot 2024-10-09 at 15 46 49@2x

(low-priority) The total number of languages here is a bit overwhelming, we may want to reduce the number of options if possible
CleanShot 2024-10-09 at 15 47 14@2x

@olafurpg
Copy link
Contributor

olafurpg commented Oct 9, 2024

minor: the "export" option downloads a file named "document.yaml", it would be nice if it used the same name as the original spec file.

@olafurpg olafurpg mentioned this pull request Oct 9, 2024
@MaedahBatool
Copy link
Contributor

Closing temporarily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants